package com.benmei.weike.dao;

import com.benmei.weike.entity.DiscountCoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
@Mapper
public interface DiscountCouponDao {

    Integer  insertDiscountCoupon(@Param("pojo") DiscountCoupon pojo);

    List<DiscountCoupon> searchDiscountCoupon(@Param("memb_id") Integer memb_id);

    DiscountCoupon selectDiscountCouponDetail(@Param("id") Integer id);

    void updateDiscountState(@Param("discount_id") Integer discount_id);

    void updateMembDiscountState(@Param("memb_id") Integer memb_id);

    DiscountCoupon selectCouponByMembId(@Param("memb_id") Integer memb_id);
}
